package com.gljx.web.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.gljx.web.Entity.JournalEntry.QuarterlyJournal;
import com.gljx.web.dao.CommonDao;
import com.gljx.web.service.QuarterlyJournalService;

@Service
@Transactional
public class QuarterlyJournalServiceImpl extends CommonDao implements QuarterlyJournalService {

	@Override
	public List<QuarterlyJournal> selQuarterlyJournal(String companyId, String dateMonth) {
		// TODO Auto-generated method stub
		Map<String, Object> paramMap = new HashMap<String, Object>();
		paramMap.put("v_companyId", companyId);
		paramMap.put("v_timeId", dateMonth);
		paramMap.put("v_select_km", null);
		paramMap.put("v_res_list", oracle.jdbc.OracleTypes.CURSOR);
		this.getSqlSession().select("com.gljx.web.dao.QuarterlyJournalMapper.selQuarterlyJournal", paramMap, null);
		@SuppressWarnings("unchecked")
		List<QuarterlyJournal> quarterlyJournalList = (List<QuarterlyJournal>) paramMap.get("v_res_list");
		return quarterlyJournalList;
	}

}
